default_text_search_config
pg_catalog.english

(1 row)

List of text search configurations
Schema Name Description
pg_catalog danish configuration for danish language
pg_catalog dutch configuration for dutch language
pg_catalog english configuration for english language
pg_catalog finnish configuration for finnish language
pg_catalog french configuration for french language
pg_catalog german configuration for german language
pg_catalog hungarian configuration for hungarian language
pg_catalog italian configuration for italian language
pg_catalog norwegian configuration for norwegian language
pg_catalog portuguese configuration for portuguese language
pg_catalog romanian configuration for romanian language
pg_catalog russian configuration for russian language
pg_catalog simple simple configuration
pg_catalog spanish configuration for spanish language
pg_catalog swedish configuration for swedish language
pg_catalog turkish configuration for turkish language
public english_ispell  

(17 rows)

List of text search dictionaries
Schema Name Template Init options Description
pg_catalog simple pg_catalog.simple   simple dictionary: just lower case and check for stopword

(1 row)

List of text search dictionaries
Schema Name Template Init options Description
public english_ispell pg_catalog.ispell dictfile = 'english', afffile = 'english', stopwords = 'english'  

(1 row)

Text search configuration "pg_catalog.simple"
Parser: "pg_catalog.default"
Token Dictionaries
asciihword simple
asciiword simple
email simple
file simple
float simple
host simple
hword simple
hword_asciipart simple
hword_numpart simple
hword_part simple
int simple
numhword simple
numword simple
sfloat simple
uint simple
url simple
url_path simple
version simple
word simple
Text search configuration "public.english_ispell"
Parser: "pg_catalog.default"
Token Dictionaries
asciihword english_thesaurus,english_synonym,english_ispell,english_stem
asciiword english_thesaurus,english_synonym,english_ispell,english_stem
email simple
file simple
float simple
host simple
hword english_thesaurus,english_synonym,english_ispell,english_stem
hword_asciipart english_thesaurus,english_synonym,english_ispell,english_stem
hword_numpart simple
hword_part english_thesaurus,english_synonym,english_ispell,english_stem
int simple
numhword simple
numword simple
sfloat simple
uint simple
url simple
url_path simple
version simple
word english_thesaurus,english_synonym,english_ispell,english_stem
Text search configuration "pg_catalog.english"
Parser: "pg_catalog.default"
Token Dictionaries
asciihword english_stem
asciiword english_stem
email simple
file simple
float simple
host simple
hword english_stem
hword_asciipart english_stem
hword_numpart simple
hword_part english_stem
int simple
numhword simple
numword simple
sfloat simple
uint simple
url simple
url_path simple
version simple
word english_stem

TEST DICTIONARIES WITH THE WORD "plowed": english_stem, simple, english_ispell ...
ts_lexize
{plow}
{plowed,plow}
{plowed}

(3 rows)


TEST A CONFIGURATION ...
alias description token dictionaries dictionary lexemes
asciiword Word, all ASCII plowed {english_stem} english_stem {plow}

(1 row)

alias description token dictionaries dictionary lexemes
asciiword Word, all ASCII plowed {simple} simple {plowed}

(1 row)

alias description token dictionaries dictionary lexemes
asciiword Word, all ASCII plowed {english_thesaurus,english_synonym,english_ispell,english_stem} english_ispell {plowed,plow}

(1 row)

alias description token dictionaries dictionary lexemes
asciiword Word, all ASCII postgresql {english_stem} english_stem {postgresql}

(1 row)

alias description token dictionaries dictionary lexemes
asciiword Word, all ASCII postgresql {simple} simple {postgresql}

(1 row)

alias description token dictionaries dictionary lexemes
asciiword Word, all ASCII postgresql {english_thesaurus,english_synonym,english_ispell,english_stem} english_synonym {pgsql}

(1 row)

alias description token dictionaries dictionary lexemes
asciiword Word, all ASCII emerald {english_stem} english_stem {emerald}
blank Space symbols   {}    
asciiword Word, all ASCII city {english_stem} english_stem {citi}

(3 rows)

alias description token dictionaries dictionary lexemes
asciiword Word, all ASCII emerald {simple} simple {emerald}
blank Space symbols   {}    
asciiword Word, all ASCII city {simple} simple {city}

(3 rows)

alias description token dictionaries dictionary lexemes
asciiword Word, all ASCII emerald {english_thesaurus,english_synonym,english_ispell,english_stem} english_ispell {emerald}
blank Space symbols   {}    
asciiword Word, all ASCII city {english_thesaurus,english_synonym,english_ispell,english_stem} english_ispell {city}

(3 rows)


CONVERT STRING INTO A TEXT SEARCH VECTOR

select to_tsvector(english_ispell,GIS relational database management system plowed blower pillow)

select to_tsvector(english_ispell,emerald city database management system);

select to_tsvector(english_ispell,postgresql POSTGRES);

select to_tsvector(english_ispell,emerald city);
to_tsvector
'Seattle':1
'pgsql':1,2
'Seattle':1 'postgres':2
'blow':4 'blower':4 'pillow':5 'plow':3 'plowed':3 'postgres':1,2

(4 rows)